Where: Tran-Type is the transaction type.
DC - Deliver Chassis
DI - Deliver Import
DM - Deliver Empty
DE - Dray Off
RC - Receive Chassis
RE - Receive Export
RI - Dray In
RM - Receive Empty
TC - Through Container
Note:
1. User must create separate plug-ins for each transaction type,which gives the flexibility of having individual pre/post processing logic for individual transaction types.
Examples plugin names:
CancelDMTransactionInterceptor -- For Deliver Empty transaction type.
CancelRETransactionInterceptor -- For Receive Export transaction type
Main N4 Entity
TruckTransaction
Functionality
Road Module
Cancel Truck Transaction
Description
Allow updates or validation before and after canceling a gate transaction. N4 executes this groovy hook when a transaction is cancelled either through the user interface or through the Web Service API.
Interface Method(s) and Injected Data
Method: preProcessCancelTransaction (Map)
Injected Data
(key="TruckTransaction", value=TruckTransaction)
note:
1. This method will be executed prior to cancelling a truck transaction.
2. Provide empty implementation if no preprocessing is to be done.
Method: postProcessCancelTransaction (Map)
Injected Data
(key="TruckTransaction", value=TruckTransaction)
note:
1. This method will be executed just after a transaction is cancelled.
2. Provide empty implementation if no preprocessing is to be done.
Exception/Transaction Handling
Exceptions or failures at any point of the flow rolls back the entire operations and N4 shows the exceptions in the user interface or returned in the Web Service response.
Availability
1.8.4.4 +
1.8.6 +